package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 病人对象 pacs_patient
 * 
 * @author ruoyi
 * @date 2025-03-09
 */
public class PacsPatient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 机构ID */
    @Excel(name = "机构ID")
    private Long deptId;

    /** 病人编号 */
    @Excel(name = "病人编号")
    private String patNum;

    /** 病人名称 */
    @Excel(name = "病人名称")
    private String patName;

    /** 出生日期 */
    @Excel(name = "出生日期")
    private String patBirth;

    /** 性别:1男 2女 */
    @Excel(name = "性别:1男 2女")
    private String patSex;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public void setPatNum(String patNum) 
    {
        this.patNum = patNum;
    }

    public String getPatNum() 
    {
        return patNum;
    }

    public void setPatName(String patName) 
    {
        this.patName = patName;
    }

    public String getPatName() 
    {
        return patName;
    }

    public void setPatBirth(String patBirth) 
    {
        this.patBirth = patBirth;
    }

    public String getPatBirth() 
    {
        return patBirth;
    }

    public void setPatSex(String patSex) 
    {
        this.patSex = patSex;
    }

    public String getPatSex() 
    {
        return patSex;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("patNum", getPatNum())
            .append("patName", getPatName())
            .append("patBirth", getPatBirth())
            .append("patSex", getPatSex())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
